import request from '@/utils/request'

// 获取列表信息
export const getPermission = () => request.get('/sys/permission')
// 添加
export const addPermission = data => request.post('/sys/permission', data)
// 修改
export const updatePermission = data => request.put(`/sys/permission/${data.id}`, data)
// 获取详细信息
export const getUpdate = id => request.get(`/sys/permission/${id}`)
// 删除
export const delPermission = id => request.delete(`/sys/permission/${id}`)
